package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 报警器设备报警记录
 * </p>
 *
 * @author wanghai
 * @since 2023-02-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_operation_log")
@ApiModel(value="OperationLog对象", description="报警器设备报警记录")
public class OperationLog extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作人编码")
    @TableField("operation_person_code")
    private String operationPersonCode;

    @ApiModelProperty(value = "操作人名称")
    @TableField("operation_person_name")
    private String operationPersonName;

    @ApiModelProperty(value = "操作菜单")
    @TableField("operation_menu")
    private String operationMenu;

    @ApiModelProperty(value = "操作类型")
    @TableField("operation_type")
    private String operationType;

    @ApiModelProperty(value = "详情")
    @TableField("log_detail")
    private String logDetail;

    @ApiModelProperty(value = "操作的表名")
    @TableField("table_name")
    private String tableName;

    @ApiModelProperty(value = "操作表的主键")
    @TableField("table_key")
    private String tableKey;

    @ApiModelProperty(value = "操作前")
    @TableField("operation_before")
    private String operationBefore;

    @ApiModelProperty(value = "操作后")
    @TableField("operation_after")
    private String operationAfter;


}
